package com.micro.shop.model;

import java.io.Serializable;

public class OrderReward implements Serializable {
    /**
     * 
     * 表 : bestfenxiao_order_reward
     * 对应字段 : id
     */
    private Integer id;

    /**
     * 订单表ID
     * 表 : bestfenxiao_order_reward
     * 对应字段 : order_id
     */
    private Integer orderId;

    /**
     * 会员ID
     * 表 : bestfenxiao_order_reward
     * 对应字段 : uid
     */
    private Integer uid;

    /**
     * 满减/送ID
     * 表 : bestfenxiao_order_reward
     * 对应字段 : rid
     */
    private Integer rid;

    /**
     * 活动名称
     * 表 : bestfenxiao_order_reward
     * 对应字段 : name
     */
    private String name;

    /**
     * 描述序列化数组
     * 表 : bestfenxiao_order_reward
     * 对应字段 : content
     */
    private String content;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table bestfenxiao_order_reward
     *
     * @mbggenerated Mon Apr 23 22:23:43 CST 2018
     */
    private static final long serialVersionUID = 1L;

    /**
     * get method 
     *
     * @return bestfenxiao_order_reward.id：
     */
    public Integer getId() {
        return id;
    }

    /**
     * set method 
     *
     * @param id  
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_reward.order_id：订单表ID
     */
    public Integer getOrderId() {
        return orderId;
    }

    /**
     * set method 
     *
     * @param orderId  订单表ID
     */
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_reward.uid：会员ID
     */
    public Integer getUid() {
        return uid;
    }

    /**
     * set method 
     *
     * @param uid  会员ID
     */
    public void setUid(Integer uid) {
        this.uid = uid;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_reward.rid：满减/送ID
     */
    public Integer getRid() {
        return rid;
    }

    /**
     * set method 
     *
     * @param rid  满减/送ID
     */
    public void setRid(Integer rid) {
        this.rid = rid;
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_reward.name：活动名称
     */
    public String getName() {
        return name;
    }

    /**
     * set method 
     *
     * @param name  活动名称
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * get method 
     *
     * @return bestfenxiao_order_reward.content：描述序列化数组
     */
    public String getContent() {
        return content;
    }

    /**
     * set method 
     *
     * @param content  描述序列化数组
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    /**
     *
     * @param that
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        OrderReward other = (OrderReward) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderId() == null ? other.getOrderId() == null : this.getOrderId().equals(other.getOrderId()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getRid() == null ? other.getRid() == null : this.getRid().equals(other.getRid()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getContent() == null ? other.getContent() == null : this.getContent().equals(other.getContent()));
    }

    /**
     *
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderId() == null) ? 0 : getOrderId().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getRid() == null) ? 0 : getRid().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getContent() == null) ? 0 : getContent().hashCode());
        return result;
    }
}